﻿
#ifndef _WIN32
#include <string>
#endif

namespace as
{
	namespace tools
	{
		class GameMMap
		{
		public:
			GameMMap();
			~GameMMap();
			bool CreateMMap(const char *file_path, int size);
			const char* CreateFileMMap(const char *file_path);
			const char *get_buf();
			const char *pBuf = nullptr;
#ifdef _WIN32
			void *hMapFile = nullptr;
#else
			int hMapFile = 0;
			std::string filePath;
#endif
		};
	}
}